package com.sicong.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sicong.admin.entity.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author chenww
 * @since 2020-11-25
 */
public interface RoleMapper extends BaseMapper<Role> {

    /**
     * 根据用户id查询角色
     * @param userId 用户id
     * @return       角色集合
     */
    List<Long> findRolesByUserId(Long userId);

}
